package com.bestom.t9mod.commons.constant;


import com.bestom.t9mod.commons.utils.DataTurn;

public enum KPARECmdCode {

    KPA_RECMD_WAKEUP(0x5a),
    KPA_RECMD_SLEEP(0x5b),
    KPA_RECMD_PREPARE(0x57),
    KPA_RECMD_START(0x50),
    KPA_RECMD_STOP(0x53),
    KPA_RECMD_CHECK(0xa7),
    KPA_RECMD_VERSION(0x5d),
    KPA_RECMD_INFO(0x54),
    KPA_RECMD_RESULT(0x55),
    KPA_RECMD_ERROR(0x56);

    private final Integer value;
    private DataTurn DataTurn =new DataTurn();

    KPARECmdCode(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public String getHexStr() {
        return DataTurn.IntToHex(value);
    }
}
